#-------------------------------------------------
#
# Project created by QtCreator 2013-04-24T15:39:11
#
#-------------------------------------------------
nix{
        QTDIR = $$system(printenv QTDIR)
        CURRENT_PROJECT_PATH = $$system(pwd)
        UNAME = $$system(uname -s)
        RT21_HOME = $$system(printenv RT21_HOME)
        contains(UNAME, AIX){
                QMAKE_LFLAGS      += -bmaxdata:0x70000000/dsa
        }
}

win32{
        QTDIR = $$system("echo %QTDIR%")
        CURRENT_PROJECT_PATH = .
                debug {
            CONFIG += console
        }
}

!include($$(RT21_HOME)/compiled/qmake/qmake.conf){ 
error(the file $$(RT21_HOME)/compiled/qmake/qmake.conf is not exist!!)
}

unix:DESTDIR = $$(RT21_HOME)/lib
win32:DESTDIR += $$(RT21_HOME)/bin

win32:INCLUDEPATH = .	\
		$$(RT21_HOME)/src/include	\
		$$(RT21_HOME)/src/			\
		$$(RT21_HOME)/src/include/corba \
		$$(RT21_HOME)/src/include/rdb \
		$$(RT21_HOME)/src/include/db_com \
		$$(RT21_HOME)/src/idl_generate  \
		$$(RT21_HOME)/src/include/stlport

unix:INCLUDEPATH +=	$$(RT21_HOME)/src/gui/hmi/plugin/Curve_Widget \
                $$(RT21_HOME)/src/idl_generate \
                $$(RT21_HOME)/src/include/corba \
                $$(RT21_HOME)/src


DEFINES += MAIN_TOPODLL_LIBRARY

QT       += core gui
QT       += sql
CONFIG   += qt uitools
TARGET = topo
TEMPLATE = app
LIBS += -lwsock32
DEPENDPATH += .	\
		          $$(QTDIR)/include

SOURCES += main.cpp\
        mainwindow.cpp \
    itemmenuaction.cpp \
    interfacedao.cpp \
    in_performance.cpp \
    grouppanel.cpp \
    groupdialog.cpp \
    groupdao.cpp \
    editdeviceinfo.cpp \
    doublesubsetdao.cpp \
    dialog.cpp \
    devicetypedao.cpp \
    devicetype.cpp \
    deviceport.cpp \
    devicelist.cpp \
    devicedao.cpp \
    deviceconnectdao.cpp \
    deviceconnect.cpp \
    device_interface.cpp \
    device.cpp \
    dbutil.cpp \
    connectioninfo.cpp \
    cmdui_dialog.cpp \
    addDeviceDialog.cpp \
    addDevice.cpp \
    topoPanel.cpp \
    toponodelabel.cpp \
    subsettreenode.cpp \
    subsetdao.cpp \
    subset.cpp \
    splitlightmachineviewinfodialog.cpp \
    splitlightmachinedao.cpp \
    splitlightmachine.cpp \
    portwidget.cpp \
    portlabel.cpp \
    portdialog.cpp \
    portdetailmanage.cpp \
    portdao.cpp \
    nodemenuaction.cpp \
    plotter.cpp \
    line.cpp \
    seedsdao.cpp \
    seeds.cpp \
    seedseditdialog.cpp \
    paramdialog.cpp \
    sysparamdao.cpp \
    sysparam.cpp \
    proberangedao.cpp \
    proberange.cpp \
    addSplitLightMachineDeviceDialog.cpp \
    deviceviewinfodialog.cpp

HEADERS  += mainwindow.h \
    itemmenuaction.h \
    interfacedao.h \
    in_performance.h \
    grouppanel.h \
    groupdialog.h \
    groupdao.h \
    group_device.h \
    group.h \
    editdeviceinfo.h \
    EditDevice.h \
    doublesubsetdao.h \
    doublesubset.h \
    dialog.h \
    deviceviewinfo.h \
    devicetypedao.h \
    devicetype.h \
    deviceport.h \
    devicelist.h \
    devicedao.h \
    deviceconnectdao.h \
    deviceconnect.h \
    device_interface.h \
    device.h \
    dbutil.h \
    connectioninfo.h \
    cmdui_dialog.h \
    CmdUi.h \
    addDeviceDialog.h \
    addDevice.h \
    ui_toponodemenu.h \
    ui_portListDialog.h \
    ui_portdetail.h \
    ui_mainwindow.h \
    ui_groupdialog.h \
    ui_EditDevice.h \
    ui_dialog.h \
    ui_deviceviewinfo.h \
    ui_devicelist.h \
    ui_connectioninfo.h \
    ui_connectinfo.h \
    ui_cmd.h \
    ui_addSplitLightMachineDevice.h \
    topoPanel.h \
    toponodelabel.h \
    topoconstants.h \
    subsettreenode.h \
    subsetdao.h \
    subset.h \
    splitlightmachineviewinfo.h \
    splitlightmachineviewdialog.h \
    splitlightmachinedao.h \
    splitlightmachine.h \
    portwidget.h \
    portListDialog.h \
    portlabel.h \
    portdialog.h \
    portdetailmanage.h \
    portdao.h \
    pagegrid.h \
    nodemenuaction.h \
    plotter.h \
    line.h \
    seedsdao.h \
    seeds.h \
    seedseditdialog.h \
    SeedsEdit.h \
    paramdialog.h \
    paramConfig.h \
    sysparamdao.h \
    sysparam.h \
    proberangedao.h \
    proberange.h \
    dbutil.h \
    addSplitLightMachineDeviceDialog.h \
    addSplitLightMachineDevice.h \
    deviceviewinfodialog.h

FORMS    += mainwindow.ui

RESOURCES += \
    menu.qrc \
    menu.qrc
